package com.itheima.d1_static_field;

/*
    目标：通过案例理解类变量的应用场景。

    需求 : 系统启动后，要求用户类可以记住自己创建了多少个用户对象了
 */
public class Test2 {
    public static void main(String[] args) {
        Student student=new Student();
        student.y=1;
        Student.x=1;
        System.out.println(student.toString());

        Student student1=new Student();
        student1.y=2;
        Student.x=2;
        System.out.println(student1.toString());

        Student student2=new Student();
        Student.x=3;
        student2.y=3;

        System.out.println(student2.toString());

    }
}
